package com.heima.tast.job;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.stereotype.Component;

@Component
public class HelloJob {
//    @Scheduled(cron = "0/5 * * * * ?")
    @XxlJob("helloJob")
    public ReturnT eat(String params) {
        System.out.println(params+"饿了想干饭，要变成一个胖子");
        return ReturnT.SUCCESS;
    }
}